import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// import axios from 'axios'
// axios.defaults.baseURL = 'http://101.43.165.85:2425/'
// axios.defaults.baseURL = 'http://127.0.0.1:27017:2425'
// axios.interceptors.request.use(config => {
//     config.headers.Authorization = window.sessionStorage.getItem('token')
//     return config
// })
const app = createApp(App)
// app.config.globalProperties.axios = axios
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app
    .use(store)
    .use(router)
    .use(ElementPlus)
    .mount('#app')